package com.twu.biblioteca.menu;

import com.twu.biblioteca.Messages;
import com.twu.biblioteca.Options;

public class Menu {
    public void execute(MenuOption menuType){
        menuType.execute();
    }

    public Options handleInput(int value) {
        return Options.selected(value);
    }

    public void display(){
        printToScreen(Options.display() + Messages.REQUEST_MENU_OPTION);
    }

    public static void printToScreen(String message) {
        System.out.println(message);
        message = null;
    }
}